package com.hongdee.crm.weChat.controller;

import com.hongdee.crm.weChat.service.ITBcCarSeriesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Liu XiaoLong
 * Date: 2017/10/23.
 * Remark:
 */
@RestController
@RequestMapping("/api/crm/carseri")
public class WechatTBcCarSeriesController {

    @Autowired
    private ITBcCarSeriesService itBcCarSeriesService;

    /**
     * @Name: 获取车系和车系ID
     * @Author: Liu XiaoLong
     * @Date: 2017/10/23 15:15
     * @Remark:
     */
    @RequestMapping("/list")
    public Map getSeriesList(@RequestParam(name = "uid",defaultValue = "") String uid,
                             @RequestParam(name = "token",defaultValue = "") String token) throws Exception{
        Map map =  new HashMap();
        map.put("dataList",itBcCarSeriesService.getSeriesList());
        map.put("success",true);
        return map;
    }
}
